package com.macro.mall.common.utils;

public interface BizInfo {
    BizInfo SUCCESS = new BizInfo() {
        @Override
        public int code() {
            return 0;
        }

        @Override
        public String msg() {
            return "操作成功";
        }
    };
    BizInfo SYS_ERROR = new BizInfo() {
        @Override
        public int code() {
            return 1;
        }

        @Override
        public String msg() {
            return "系统繁忙，请稍后重试！";
        }
    };
    BizInfo PARAM_VALIDATE_ERROR = new BizInfo() {
        @Override
        public int code() {
            return 200;
        }

        @Override
        public String msg() {
            return "参数校验失败";
        }
    };

    int code();

    String msg();
}
